package com.itheima.Demo9inputstreamreader;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class InputStreamReanderdemo1 {
    public static void main(String[] args) {
        //使用字符输入转换流解决不同编码读取乱码问题
        try (   InputStream is=new FileInputStream("src\\com\\itheima\\Demo5FlieReader\\java") ;
                InputStreamReader isr = new InputStreamReader(is, "utf-8")) {

        }catch (Exception e)
        {
            e.printStackTrace();
        }
    }
}
